Objects Reference

directX::load_wav_file

Prototype

int load_wav_file(LONG cchBuffer,HPSTR pchBuffer,LPDIRECTSOUNDBUFFER *buf,LPDIRECTSOUND3DBUFFER *buf3d)

Parameters

Parameter Type Description
cchBuffer LONG .wav file size in bytes
pchBuffer HPSTR .wav file bytes
buf DIRECTSOUNDBUFFER ** destination direct sound buffer
buf3d DIRECTSOUND3DBUFFER ** destination direct sound buffer 3D

Return Value

Returns TRUE if loading is OK, FALSE on any error.

Remarks

Loads a .wav file stored in memory. It creates the direct sound buffer (*buf and *buf3d) to receive the sound. Note that the buf and buf3d parameters are pointers to pointers.